Verified Commit 1f106f90 authored by Camil Staps's avatar Camil Staps 🐟

Add checktest.sh; fix import in GenZip; add .gitignore for tests

parent b609d80d
Pipeline #15047 passed with stage
in 1 minute and 16 seconds
definition module GenZip
import Data.Generics.GenZip
import Data.GenZip
gentest
snappytest
tartest
test
......@@ -21,7 +21,7 @@ ifeq "$(GCCVERSIONGTEQ6)" "1"
override CLMFLAGS+=-l -no-pie
endif
BINARIES:=test gentest snappytest tartest
BINARIES:=checktest test gentest snappytest tartest
all: $(BINARIES)
......@@ -29,6 +29,9 @@ all: $(BINARIES)
$(CLM) $(CLMLIBS) $(CLMFLAGS) $@ -o $@
./$@
checktest: .FORCE
./checktest.sh
snappytest: %: %.icl .FORCE
$(CLM) $(CLMLIBS) -l -lsnappy $(CLMFLAGS) -nr $@ -o $@
./$@
......
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
COLLECTIONS="OS-Independent OS-Linux OS-Linux-64 OS-Posix Platform-x86"
FILE="test.icl"
SUCCESS=1
for coll in $COLLECTIONS
do
MODULES="$(find "../../src/libraries/$coll" -name '*.dcl' \
| sed \
-e 's:.*libraries/[^/]*/::' \
-e 's:Deprecated/[^/]*/::' \
-e 's:.dcl::' \
-e 's:/:\.:g')"
for mod in $MODULES
do
if ! grep "import.* $mod\\($\\|[^[:alnum:].]\\)" "$FILE" >/dev/null
then
echo "Not used in $FILE: $mod"
export SUCCESS=0
fi
done
done
if [ $SUCCESS != 1 ]
then
exit -1
else
echo "All modules from $COLLECTIONS are included in $FILE."
fi
......@@ -10,6 +10,23 @@ import qualified StdArrayExtensions
import qualified StdListExtensions
import qualified StdMaybe
import qualified StdLibMisc
// Deprecated libraries: Generics
import qualified GenBimap
import qualified GenCompress
import qualified GenDefault
import qualified GenEq
import qualified GenFMap
import qualified GenHylo
import qualified GenLexOrd
import qualified GenLib
import qualified GenMap
import qualified GenMapSt
import qualified GenMonad
import qualified GenParse
import qualified GenPrint
import qualified GenReduce
import qualified GenZip
import qualified _Array
// Main libraries
//import qualified Clean.PrettyPrint // requires Clean compiler
......@@ -28,6 +45,7 @@ import qualified Clean.Types.Tree
import qualified Clean.Types.Unify
import qualified Clean.Types.Util
import qualified Clean.ModuleFinder
import qualified Codec.Archive.Tar
import qualified Codec.Compression.Snappy
import qualified Codec.Compression.Snappy.Graph
import qualified Control.Applicative
......@@ -61,6 +79,7 @@ import qualified Data.Either.GenJSON
import qualified Data.Encoding.RunLength
import qualified Data.Eq
import qualified Data.Error
import qualified Data.Error.GenJSON
import qualified Data.Foldable
import qualified Data.Func
import qualified Data.Functor
......@@ -143,6 +162,7 @@ import qualified System.File
import qualified System.FilePath
import qualified System.GetOpt
import qualified System.IO
import qualified System.Options
import qualified System.OS
import qualified System.OSError
import qualified System.Platform
......
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