Created
February 12, 2013 14:01
-
-
Save bstrie/4770066 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
fn main() { | |
run_command("ls"); | |
run_command("ls -l"); | |
run_command("ls -l -a"); | |
run_command("lua LoadGen.lua style=pointer_rust -spec=gl -version=3.3 \ | |
-profile=core core_3_3"); | |
} | |
fn run_command(command: &str) -> int { | |
let split = command.split_char(' '); | |
let (&prog, args) = match split { | |
[] => die!(), | |
[ref head, ..tail] => (head, tail) | |
}; | |
return core::run::run_program(prog, args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment