Last active
August 29, 2015 14:00
-
-
Save danking/11357961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang shill/ambient | |
require shill/native; | |
require "syscall-test.cap"; | |
val wallet = create-wallet(); | |
populate-native-wallet(wallet | |
,open-dir("/") | |
,"/home/danking/tests/individual-system-call-tests" | |
,"/libexec:/lib:/usr/lib" | |
,pipe-factory | |
,lookups = [open-dir("/home"), open-dir("/dev")]); | |
syscall-test(wallet,stdout,cwd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang shill/cap | |
provide [syscall-test : | |
[wallet : native-wallet?] | |
[out : writeable?] | |
[cwd : dir/c(+chdir, +lookup, +path)] | |
-> integer?]; | |
require shill/native; | |
require shill/contracts; | |
require shill/io; | |
val syscall-test = fun (wallet,out,cwd) { | |
find = pkg-native("a.out",wallet); | |
find([],stdout = out, stderr = out, extra = [cwd]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment