From 256eeab7112da2d5fe1629ffb8b86640a894ee6d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 4 May 2004 12:15:30 +0000 Subject: * Allow the location of the store etc. to be specified using environment variables. * Started adding some automatic tests. * Do a `make check' when building RPMs. --- tests/simple.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/simple.sh (limited to 'tests/simple.sh') diff --git a/tests/simple.sh b/tests/simple.sh new file mode 100644 index 000000000..68da000d1 --- /dev/null +++ b/tests/simple.sh @@ -0,0 +1,10 @@ +storeExpr=$($TOP/src/nix-instantiate/nix-instantiate simple.nix) + +echo "store expr is $storeExpr" + +outPath=$($TOP/src/nix-store/nix-store -qnfvvvvv "$storeExpr") + +echo "output path is $outPath" + +text=$(cat "$outPath"/hello) +if test "$text" != "Hello World!"; then exit 1; fi -- cgit v1.2.3