diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27T14·56+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-27T14·56+0000 |
commit | 40b5936691fe2448dea0080e2319cc340bc7c65c (patch) | |
tree | 66144e3af56bc1d7035134b85f5e00641ab305e0 /src/test.cc | |
parent | 3da9687854e029e9df3b612fd592d2d5a622bb20 (diff) |
* Realisation of Derive(...) expressions.
Diffstat (limited to 'src/test.cc')
-rw-r--r-- | src/test.cc | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/test.cc b/src/test.cc index aafae8ee37ff..639bd5ccf5ad 100644 --- a/src/test.cc +++ b/src/test.cc @@ -13,7 +13,9 @@ void realise(FState fs) { - realiseFState(fs); + cout << format("%1% => %2%\n") + % printTerm(fs) + % printTerm(realiseFState(fs)); } @@ -145,15 +147,25 @@ void runTests() "File(<str>, Hash(<str>), [])", builder1fn.c_str(), ((string) builder1h).c_str()); - realiseFState(fs1); - realiseFState(fs1); + realise(fs1); + realise(fs1); FState fs2 = ATmake( "File(<str>, Hash(<str>), [])", (builder1fn + "_bla").c_str(), ((string) builder1h).c_str()); - realiseFState(fs2); - realiseFState(fs2); + realise(fs2); + realise(fs2); + + string out1fn = nixStore + "/hello.txt"; + FState fs3 = ATmake( + "Derive(<str>, <str>, [<term>], <str>, [(\"out\", <str>)])", + thisSystem.c_str(), + builder1fn.c_str(), + fs1, + out1fn.c_str(), + out1fn.c_str()); + realise(fs3); #if 0 Expr e1 = ATmake("Exec(Str(<str>), Hash(<str>), [])", |