Commit b976748e authored by Ivana Krumlova's avatar Ivana Krumlova Committed by Petr Špaček
Browse files

tools: - env variable for selecting * script used for testing

parent 7a68ca85
......@@ -2,12 +2,14 @@
# Sorts .rpl tests into several categories.
# Takes a diretory with the tests as an argument and moves the test to its subdirectories.
# Env variable SCRIPT= sets * script for finding working tests, default script is
set -o nounset
set -o errexit
# Test with the same name is already imported in deckard/sets/resolver
echo Already imported:
......@@ -44,22 +46,18 @@ do
# Working on kresd in deckard
echo Working:
# Working in selected script
echo Working in $SCRIPT:
mkdir -p "$SOURCE/working"
for TEST in "$SOURCE/"*.rpl
if TESTS="$(readlink -m $TEST)" ./../ >/dev/null 2>/dev/null
if TESTS="$(readlink -m $TEST)" $SCRIPT >/dev/null 2>/dev/null
echo -e '\t' $(basename "$TEST")
mv "$TEST" "$SOURCE/working"
# Others TODO: sem nic nepadá a to je divný, asi chyba, neviem
echo Others:
mkdir -p "$SOURCE/others"
for TEST in "$SOURCE/"*.rpl
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment