mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-24 01:24:57 +03:00
allow executing single test via nix run .#tests-examples {package}
This commit is contained in:
parent
e9b336953a
commit
1ac93e4d93
@ -18,7 +18,13 @@ in
|
||||
nix
|
||||
]
|
||||
''
|
||||
for dir in $(ls ${examples}); do
|
||||
if [ -n "$1" ]; then
|
||||
examples=$1
|
||||
else
|
||||
examples=$(ls ${examples})
|
||||
fi
|
||||
|
||||
for dir in $examples; do
|
||||
echo -e "\ntesting example for $dir"
|
||||
mkdir tmp
|
||||
cp ${examples}/$dir/* ./tmp/
|
||||
|
Loading…
Reference in New Issue
Block a user