Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argotest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Reis
argotest
Commits
59c5aa66
Commit
59c5aa66
authored
Dec 07, 2018
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring tests to be able to launch from external repo.
parent
4c2bdeef
Pipeline
#4583
passed with stage
in 6 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
10 deletions
+26
-10
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
Argotest.hs
Argotest.hs
+8
-8
default.nix
default.nix
+6
-0
integration.hs
integration.hs
+7
-0
integration.sh
integration.sh
+3
-0
No files found.
.gitlab-ci.yml
View file @
59c5aa66
stages
:
-
test
nix
.test
:
integration
.test
:
stage
:
test
script
:
-
./
tests.hs
-
./
integration.sh
except
:
-
/^wip\/.*/
-
/^WIP\/.*/
...
...
Argotest.hs
View file @
59c5aa66
...
...
@@ -56,14 +56,14 @@ instance Default StackArgs where
{
dargs
=
""
,
app
=
"echo Dummy app: Hello world!"
,
manifest
=
"manifests/basic.json"
,
cmd_out
=
"
/tmp/
cmd_out.log"
,
cmd_err
=
"
/tmp/
cmd_err.log"
,
daemon_out
=
"
/tmp/
daemon_out.log"
,
daemon_err
=
"
/tmp/
daemon_err.log"
,
log_progress
=
"
/tmp/
progress.log"
,
log_hardwareprogress
=
"
/tmp/
hardwareprogress.log"
,
log_power
=
"
/tmp/
power.log"
,
time_file
=
"
/tmp/
time.log"
,
cmd_out
=
"cmd_out.log"
,
cmd_err
=
"cmd_err.log"
,
daemon_out
=
"daemon_out.log"
,
daemon_err
=
"daemon_err.log"
,
log_progress
=
"progress.log"
,
log_hardwareprogress
=
"hardwareprogress.log"
,
log_power
=
"power.log"
,
time_file
=
"time.log"
}
...
...
default.nix
View file @
59c5aa66
...
...
@@ -30,7 +30,13 @@ in rec
];
};
test
=
env
.
overrideAttrs
(
old
:
{
src
=
./.
;
buildInputs
=
old
.
buildInputs
++
[
(
argopkgs
.
haskellPackages
.
ghcWithPackages
hpkgs
)
];
buildPhase
=
"runhaskell integration.hs"
;
installPhase
=
''
mkdir -p $out/bin
cp cmd_out.log cmd_err.log daemon_out.log daemon_err.log progress.log hardwareprogress.log power.log time.log $out/bin
''
;
});
dev
=
env
.
overrideAttrs
(
old
:
{
buildInputs
=
old
.
buildInputs
++
[
(
argopkgs
.
haskellPackages
.
ghcWithHoogle
hpkgs-dev
)
];
...
...
tests
.hs
→
integration
.hs
View file @
59c5aa66
#!
/
usr
/
bin
/
env
nix
-
shell
#!
nix
-
shell
default
.
nix
-
i
runhaskell
-
A
test
#!
/
usr
/
bin
/
env
runhaskell
import
Argotest
import
Data.Default
...
...
integration.sh
0 → 100755
View file @
59c5aa66
#! /usr/bin/env bash
nix-shell
--pure
-A
test
--command
./integration.hs
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment