File: testme.py

package info (click to toggle)
cde 0.1%2Bgit9-g551e54d-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,176 kB
  • sloc: ansic: 75,885; sh: 4,282; python: 1,006; perl: 438; makefile: 298; lisp: 44; java: 5
file content (18 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Test to make sure the coreutils pwd program prints out the right thing
# even when we move the CDE package to another directory

# weird that pwd doesn't do the right thing when you move directories
# ... it seems to truncate the buffer to near the ACTUAL pwd size

# coreutils pwd doesn't actually use the getcwd syscall ... instead it
# does its own thang so we might be hosed
# http://www.google.com/codesearch/p?hl=en#g6W0qk4jBZE/src/bin/coreutils/src/pwd.c&q=pwd.c%20coreutils&sa=N&cd=1&ct=rc

import sys
sys.path.insert(0, '..')
from cde_test_common import *

def checker_func():
  assert os.path.isfile(CDE_ROOT_DIR + '/bin/pwd')

generic_test_runner(["pwd"], checker_func)