> Probably I have not explained my idea clearly. Right now, this FS check you talk about is done manually, e.g. a person types the individual commands and verifies that the apps started, no error was printed, etc. It would be very useful to automate this. > > Thus, how would the automation look like in HLang? The first command would certainly be > < mkfile --size 2m /tmp/img >; > But, how would you check (from within the script) that the command succeeded? Something like Bash equivalent to [ $? -eq 0 ]? And so on. Eventually, I would expect that the script would either print "Test passed" or "Test failed".
> I just though that you might use it to illustrate various concepts in HLang. The command that we execute returns return values. We can store that return value in the variables as $var = < mkfile --size 2m /tmp/img >; That is trivial I guess. The $var == 0 may then be used to provide with test pass or fail. I will add this example however as you have advised. Thanks Supragya Raj
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
