~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to tools/gentestfile.py

  • Committer: Vojtech Horky
  • Date: 2012-05-23 12:03:26 UTC
  • mfrom: (1443.1.19 misc)
  • mto: This revision was merged to the branch mainline in revision 1479.
  • Revision ID: vojtechhorky@users.sourceforge.net-20120523120326-jv50stjymxmh598s
Merge GSOC-originated patches 

Merge from lp:~vojtech-horky/helenos/misc.

The merge includes:
 * Switching to previous directory with `cd -' in Bdsh
 * Interactive mode for cp module in Bdsh
 * Implementation of sleep command
 * printf and echo for Bdsh
 * Rewrite of the mkdir module
 * Ctrl-arrow jumps over words in the editor
 * The scripts work with Python 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
import sys
36
36
 
37
37
if len(sys.argv) < 2:
38
 
        print "Usage: gentestfile.py <count of 64-bit numbers to output>"
 
38
        print("Usage: gentestfile.py <count of 64-bit numbers to output>")
39
39
        exit()
40
40
 
41
 
m = long(sys.argv[1])
 
41
m = int(sys.argv[1])
42
42
i = 0
43
43
pow_2_64 = 2 ** 64
44
44
st = struct.Struct('<Q')