pastebin - collaborative debugging tool
rovema.kpaste.net RSS


msnfs41client: Patches for testsuite/tests
Posted by Anonymous on Mon 13th Nov 2023 17:54
raw | new post

  1. From e66bc6b48bf881fd0081fbdf6cba50d185a2fe8a Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Mon, 13 Nov 2023 17:11:22 +0100
  4. Subject: [PATCH 1/5] msnfs41client.bash: Add support for drmemory
  5.  
  6. cygwin/devel/msnfs41client.bash: Add support for drmemory
  7. (https://drmemory.org/) instrumentation.
  8. Tested with "Dr. Memory version 2.6.0 -- build 0".
  9.  
  10. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  11. ---
  12. cygwin/devel/msnfs41client.bash | 101 ++++++++++++++++++++++++++++++--
  13.  1 file changed, 95 insertions(+), 6 deletions(-)
  14.  
  15. diff --git a/cygwin/devel/msnfs41client.bash b/cygwin/devel/msnfs41client.bash
  16. index 8f9bf14..9677663 100644
  17. --- a/cygwin/devel/msnfs41client.bash
  18. +++ b/cygwin/devel/msnfs41client.bash
  19. @@ -118,6 +118,7 @@ function nfsclient_rundeamon
  20.                 'nfsd_debug.exe'
  21.                 '-d' '0'
  22.                 '--noldap'
  23. +               #'--numworkerthreads' '512'
  24.                 #'--gid' '1616' '--uid' '1616'
  25.         )
  26.  
  27. @@ -130,14 +131,51 @@ function nfsclient_rundeamon
  28.         #
  29.  
  30.         if false ; then
  31. -               gdb -ex=run --args "${nfsd_args[@]}"
  32. +               nfsd_args=(
  33. +                       'gdb'
  34. +                       '-ex=run'
  35. +                       '--args'
  36. +                       "${nfsd_args[@]}"
  37. +               )
  38. +               "${nfsd_args[@]}"
  39.         elif false ; then
  40.                 export _NT_ALT_SYMBOL_PATH="$(cygpath -w "$PWD");srv*https://msdl.microsoft.com/download/symbols"
  41.                 # use '!gflag +full;g' for heap tests, eats lots of memory
  42. -               cdb -c '!gflag +soe;sxe -c "kp;gn" *;g' "$(cygpath -w "$PWD/${nfsd_args[0]}")" "${nfsd_args[@]:1}"
  43. +               nfsd_args=(
  44. +                       'cdb'
  45. +                       '-c' '!gflag +soe;sxe -c "kp;gn" *;g'
  46. +                       "$(cygpath -w "$PWD/${nfsd_args[0]}")"
  47. +                       "${nfsd_args[@]:1}"
  48. +               )
  49. +               "${nfsd_args[@]}"
  50. +       elif false ; then
  51. +               #
  52. +               # test nfsd_debug.exe with Dr. Memory (version 2.6.0 -- build 0)
  53. +               #
  54. +               export _NT_ALT_SYMBOL_PATH="$(cygpath -w "$PWD")"
  55. +               nfsd_args=(
  56. +                       'drmemory.exe' \
  57. +                               '-batch'
  58. +                               '-brief'
  59. +                               '-no_follow_children'
  60. +                               '-lib_blocklist_frames' '1'
  61. +                               '-check_uninit_blocklist' 'MSWSOCK,WS2_32'
  62. +                               '-malloc_callstacks'
  63. +                               '-delay_frees' '16384'
  64. +                               '-delay_frees_maxsz' $((64*1024*1024))
  65. +                               '-redzone_size' '4096'
  66. +                               '-check_uninitialized'
  67. +                               '-check_uninit_all'
  68. +                               '-strict_bitops'
  69. +                               '-gen_suppress_syms'
  70. +                               '-preload_symbols'
  71. +                               '--'
  72. +                               "${nfsd_args[@]}"
  73. +                       )
  74. +               "${nfsd_args[@]}"
  75.         else
  76.                 "${nfsd_args[@]}"
  77. -        fi
  78. +       fi
  79.         return $?
  80.  }
  81.  
  82. @@ -150,19 +188,70 @@ function nfsclient_system_rundeamon
  83.                 'nfsd_debug.exe'
  84.                 '-d' '0'
  85.                 '--noldap'
  86. +               #'--numworkerthreads' '512'
  87.                 #'--gid' '1616' '--uid' '1616'
  88.         )
  89.  
  90. +       # run everything as su_system
  91. +       nfsd_args=(
  92. +               'su_system'
  93. +               "${nfsd_args[@]}"
  94. +       )
  95. +
  96. +       #
  97. +       # cdb cheat sheet:
  98. +       #
  99. +       # gdb: run  cdb: g
  100. +       # gdb: bt   cdb: kp
  101. +       # gdb: quit cdb: q
  102. +       #
  103.  
  104.         if false ; then
  105. -               su_system gdb -ex=run --args "${nfsd_args[@]}"
  106. +               nfsd_args=(
  107. +                       'gdb'
  108. +                       '-ex=run'
  109. +                       '--args'
  110. +                       "${nfsd_args[@]}"
  111. +               )
  112. +               "${nfsd_args[@]}"
  113.         elif false ; then
  114.                 export _NT_ALT_SYMBOL_PATH="$(cygpath -w "$PWD");srv*https://msdl.microsoft.com/download/symbols"
  115.                 # use '!gflag +full;g' for heap tests, eats lots of memory
  116. -               su_system cdb -c '!gflag +soe;sxe -c "kp;gn" *;g' "$(cygpath -w "$PWD/${nfsd_args[0]}")" "${nfsd_args[@]:1}"
  117. +               nfsd_args=(
  118. +                       'cdb'
  119. +                       '-c' '!gflag +soe;sxe -c "kp;gn" *;g'
  120. +                       "$(cygpath -w "$PWD/${nfsd_args[0]}")"
  121. +                       "${nfsd_args[@]:1}"
  122. +               )
  123. +               "${nfsd_args[@]}"
  124. +       elif false ; then
  125. +               #
  126. +               # test nfsd_debug.exe with Dr. Memory (version 2.6.0 -- build 0)
  127. +               #
  128. +               export _NT_ALT_SYMBOL_PATH="$(cygpath -w "$PWD")"
  129. +               nfsd_args=(
  130. +                       'drmemory.exe' \
  131. +                               '-batch'
  132. +                               '-brief'
  133. +                               '-no_follow_children'
  134. +                               '-lib_blocklist_frames' '1'
  135. +                               '-check_uninit_blocklist' 'MSWSOCK,WS2_32'
  136. +                               '-malloc_callstacks'
  137. +                               '-delay_frees' '16384'
  138. +                               '-delay_frees_maxsz' $((64*1024*1024))
  139. +                               '-redzone_size' '4096'
  140. +                               '-check_uninitialized'
  141. +                               '-check_uninit_all'
  142. +                               '-strict_bitops'
  143. +                               '-gen_suppress_syms'
  144. +                               '-preload_symbols'
  145. +                               '--'
  146. +                               "${nfsd_args[@]}"
  147. +                       )
  148. +               "${nfsd_args[@]}"
  149.         else
  150.                 "${nfsd_args[@]}"
  151. -        fi
  152. +       fi
  153.         return $?
  154.  }
  155.  
  156. --
  157. 2.42.1
  158.  
  159. From bec5cae7e44154f5e6303482d647a9fcc9ac543d Mon Sep 17 00:00:00 2001
  160. From: Roland Mainz <roland.mainz@nrubsig.org>
  161. Date: Mon, 13 Nov 2023 17:53:19 +0100
  162. Subject: [PATCH 2/5] tests: Fix nroff failure in cthon04 caused by newer
  163.  Cygwin nroff
  164.  
  165. tests: Fix nroff failure in cthon04 caused by newer Cygwin 3.5.0
  166. nroff, which uses a slightly different warning message.
  167.  
  168. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  169. ---
  170. cygwin/README.txt                             |  1 +
  171.  ...or-messages-for-newer-Cygwin-nroff-v.patch | 31 +++++++++++++++++++
  172.  2 files changed, 32 insertions(+)
  173.  create mode 100644 tests/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch
  174.  
  175. diff --git a/cygwin/README.txt b/cygwin/README.txt
  176. index 974e7b3..28a70e8 100644
  177. --- a/cygwin/README.txt
  178. +++ b/cygwin/README.txt
  179. @@ -50,6 +50,7 @@ bash ../cygwin/devel/msnfs41client.bash mount_homedir
  180.  git clone https://github.com/kofemann/ms-nfs41-client.git
  181.  git clone git://git.linux-nfs.org/projects/steved/cthon04.git
  182.  cd cthon04/
  183. +git config --global --add "$PWD"
  184.  git checkout 8cefaa2ecf8d5c1240f1573530f07cfbbfc092ea
  185.  git am ../ms-nfs41-client/tests/*.patch
  186.  make 2>&1 | tee buildlog.log
  187. diff --git a/tests/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch b/tests/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch
  188. new file mode 100644
  189. index 0000000..42baa33
  190. --- /dev/null
  191. +++ b/tests/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch
  192. @@ -0,0 +1,31 @@
  193. +From a56259552fde64a43a0cb764c77777a6c34dd6bd Mon Sep 17 00:00:00 2001
  194. +From: Roland Mainz <roland.mainz@nrubsig.org>
  195. +Date: Mon, 13 Nov 2023 17:49:14 +0100
  196. +Subject: [PATCH] cthon: Handle error messages for newer Cygwin nroff version
  197. +
  198. +cthon: Handle error messages for newer Cygwin 3.5.0 nroff version
  199. +
  200. +Tested with:
  201. +$ nroff --version
  202. +GNU nroff (groff) version 1.23.0
  203. +GNU groff version 1.23.0
  204. +---
  205. + general/runtests.wrk | 2 +-
  206. + 1 file changed, 1 insertion(+), 1 deletion(-)
  207. +
  208. +diff --git a/general/runtests.wrk b/general/runtests.wrk
  209. +index 9dda456..ef7bc86 100644
  210. +--- a/general/runtests.wrk
  211. ++++ b/general/runtests.wrk
  212. +@@ -90,7 +90,7 @@ $TIME nroff < nroff.tbl > nroff.out 2>> nroff.time || cat nroff.time
  213. + rm nroff.out nroff.tbl
  214. + set -e
  215. + #remove nroff warnings from nroff.time
  216. +-egrep -v '^warning:.*$' <nroff.time >nroff.new
  217. ++egrep -v '^(nroff.in:.+?|)warning:.*$' <nroff.time >nroff.new
  218. + mv -f nroff.new nroff.time
  219. + ./stat.exe nroff.time
  220. + set +e
  221. +--
  222. +2.42.1
  223. +
  224. --
  225. 2.42.1
  226.  
  227. From fcd4c369635eeaab07065a867e930cc7a56f39fe Mon Sep 17 00:00:00 2001
  228. From: Roland Mainz <roland.mainz@nrubsig.org>
  229. Date: Mon, 13 Nov 2023 18:04:06 +0100
  230. Subject: [PATCH 3/5] tests: [refix] Fix nroff failure in cthon04 caused by
  231.  newer Cygwin nroff
  232.  
  233. Fix typo in cygwin/README.txt
  234.  
  235. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  236. ---
  237. cygwin/README.txt | 2 +-
  238.  1 file changed, 1 insertion(+), 1 deletion(-)
  239.  
  240. diff --git a/cygwin/README.txt b/cygwin/README.txt
  241. index 28a70e8..faf0451 100644
  242. --- a/cygwin/README.txt
  243. +++ b/cygwin/README.txt
  244. @@ -50,7 +50,7 @@ bash ../cygwin/devel/msnfs41client.bash mount_homedir
  245.  git clone https://github.com/kofemann/ms-nfs41-client.git
  246.  git clone git://git.linux-nfs.org/projects/steved/cthon04.git
  247.  cd cthon04/
  248. -git config --global --add "$PWD"
  249. +git config --global --add safe.directory "$PWD"
  250.  git checkout 8cefaa2ecf8d5c1240f1573530f07cfbbfc092ea
  251.  git am ../ms-nfs41-client/tests/*.patch
  252.  make 2>&1 | tee buildlog.log
  253. --
  254. 2.42.1
  255.  
  256. From fcadb6dd346ea15608b5466610e9366d7b1a15b2 Mon Sep 17 00:00:00 2001
  257. From: Roland Mainz <roland.mainz@nrubsig.org>
  258. Date: Mon, 13 Nov 2023 18:17:54 +0100
  259. Subject: [PATCH 4/5] tests: Move cthon4 patches into their own cthon4/ subdir
  260.  
  261. Move cthon4 patches into their own cthon4/ subdir, so we get room
  262. for more tests.
  263.  
  264. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  265. ---
  266. cygwin/README.txt                                               | 2 +-
  267.  tests/{ => cthon04}/0001-cthon-tests.init-for-linux.patch       | 0
  268.  tests/{ => cthon04}/0002-cthon-fixing-tools-compilation.patch   | 0
  269.  .../0003-cthon-fixing-locks-compilation-problem.patch           | 0
  270.  .../0004-cthon-removed-fwritable-strings-from-cflags.patch      | 0
  271.  ...0005-cthon-general-scripts-use-.exe-extension-dirent.h.patch | 0
  272.  tests/{ => cthon04}/0006-cthon-fixing-op_unlk-op_ren.patch      | 0
  273.  .../0007-cthon-porting-lock-tests-to-win32-api.patch            | 0
  274.  .../0008-cthon-disabling-test8-from-the-basic-test.patch        | 0
  275.  .../0009-cthon-enabling-NATIVE64-for-special-tests.patch        | 0
  276.  tests/{ => cthon04}/0010-cthon-fixes-for-64-bit-locking.patch   | 0
  277.  tests/{ => cthon04}/0011-cthon-setting-maxeof-to-be-64bit.patch | 0
  278.  .../0012-removing-pmapbrb-pmaptst-tests-from-tools-dir.patch    | 0
  279.  tests/{ => cthon04}/0013-nroff-patch.patch                      | 0
  280.  .../0014-commenting-out-symlink-test-in-special-tests.patch     | 0
  281.  .../0015-cthon-enabled-basic-test4a-5a-5b-and-7a.patch          | 0
  282.  ...6-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch | 0
  283.  17 files changed, 1 insertion(+), 1 deletion(-)
  284.  rename tests/{ => cthon04}/0001-cthon-tests.init-for-linux.patch (100%)
  285.  rename tests/{ => cthon04}/0002-cthon-fixing-tools-compilation.patch (100%)
  286.  rename tests/{ => cthon04}/0003-cthon-fixing-locks-compilation-problem.patch (100%)
  287.  rename tests/{ => cthon04}/0004-cthon-removed-fwritable-strings-from-cflags.patch (100%)
  288.  rename tests/{ => cthon04}/0005-cthon-general-scripts-use-.exe-extension-dirent.h.patch (100%)
  289.  rename tests/{ => cthon04}/0006-cthon-fixing-op_unlk-op_ren.patch (100%)
  290.  rename tests/{ => cthon04}/0007-cthon-porting-lock-tests-to-win32-api.patch (100%)
  291.  rename tests/{ => cthon04}/0008-cthon-disabling-test8-from-the-basic-test.patch (100%)
  292.  rename tests/{ => cthon04}/0009-cthon-enabling-NATIVE64-for-special-tests.patch (100%)
  293.  rename tests/{ => cthon04}/0010-cthon-fixes-for-64-bit-locking.patch (100%)
  294.  rename tests/{ => cthon04}/0011-cthon-setting-maxeof-to-be-64bit.patch (100%)
  295.  rename tests/{ => cthon04}/0012-removing-pmapbrb-pmaptst-tests-from-tools-dir.patch (100%)
  296.  rename tests/{ => cthon04}/0013-nroff-patch.patch (100%)
  297.  rename tests/{ => cthon04}/0014-commenting-out-symlink-test-in-special-tests.patch (100%)
  298.  rename tests/{ => cthon04}/0015-cthon-enabled-basic-test4a-5a-5b-and-7a.patch (100%)
  299.  rename tests/{ => cthon04}/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch (100%)
  300.  
  301. diff --git a/cygwin/README.txt b/cygwin/README.txt
  302. index faf0451..f282c9a 100644
  303. --- a/cygwin/README.txt
  304. +++ b/cygwin/README.txt
  305. @@ -52,7 +52,7 @@ git clone git://git.linux-nfs.org/projects/steved/cthon04.git
  306.  cd cthon04/
  307.  git config --global --add safe.directory "$PWD"
  308.  git checkout 8cefaa2ecf8d5c1240f1573530f07cfbbfc092ea
  309. -git am ../ms-nfs41-client/tests/*.patch
  310. +git am ../ms-nfs41-client/tests/cthon04/*.patch
  311.  make 2>&1 | tee buildlog.log
  312.  mkdir testdir1
  313.  ./runtests -a -t "$PWD/testdir1" 2>&1 | tee testrun.log
  314. diff --git a/tests/0001-cthon-tests.init-for-linux.patch b/tests/cthon04/0001-cthon-tests.init-for-linux.patch
  315. similarity index 100%
  316. rename from tests/0001-cthon-tests.init-for-linux.patch
  317. rename to tests/cthon04/0001-cthon-tests.init-for-linux.patch
  318. diff --git a/tests/0002-cthon-fixing-tools-compilation.patch b/tests/cthon04/0002-cthon-fixing-tools-compilation.patch
  319. similarity index 100%
  320. rename from tests/0002-cthon-fixing-tools-compilation.patch
  321. rename to tests/cthon04/0002-cthon-fixing-tools-compilation.patch
  322. diff --git a/tests/0003-cthon-fixing-locks-compilation-problem.patch b/tests/cthon04/0003-cthon-fixing-locks-compilation-problem.patch
  323. similarity index 100%
  324. rename from tests/0003-cthon-fixing-locks-compilation-problem.patch
  325. rename to tests/cthon04/0003-cthon-fixing-locks-compilation-problem.patch
  326. diff --git a/tests/0004-cthon-removed-fwritable-strings-from-cflags.patch b/tests/cthon04/0004-cthon-removed-fwritable-strings-from-cflags.patch
  327. similarity index 100%
  328. rename from tests/0004-cthon-removed-fwritable-strings-from-cflags.patch
  329. rename to tests/cthon04/0004-cthon-removed-fwritable-strings-from-cflags.patch
  330. diff --git a/tests/0005-cthon-general-scripts-use-.exe-extension-dirent.h.patch b/tests/cthon04/0005-cthon-general-scripts-use-.exe-extension-dirent.h.patch
  331. similarity index 100%
  332. rename from tests/0005-cthon-general-scripts-use-.exe-extension-dirent.h.patch
  333. rename to tests/cthon04/0005-cthon-general-scripts-use-.exe-extension-dirent.h.patch
  334. diff --git a/tests/0006-cthon-fixing-op_unlk-op_ren.patch b/tests/cthon04/0006-cthon-fixing-op_unlk-op_ren.patch
  335. similarity index 100%
  336. rename from tests/0006-cthon-fixing-op_unlk-op_ren.patch
  337. rename to tests/cthon04/0006-cthon-fixing-op_unlk-op_ren.patch
  338. diff --git a/tests/0007-cthon-porting-lock-tests-to-win32-api.patch b/tests/cthon04/0007-cthon-porting-lock-tests-to-win32-api.patch
  339. similarity index 100%
  340. rename from tests/0007-cthon-porting-lock-tests-to-win32-api.patch
  341. rename to tests/cthon04/0007-cthon-porting-lock-tests-to-win32-api.patch
  342. diff --git a/tests/0008-cthon-disabling-test8-from-the-basic-test.patch b/tests/cthon04/0008-cthon-disabling-test8-from-the-basic-test.patch
  343. similarity index 100%
  344. rename from tests/0008-cthon-disabling-test8-from-the-basic-test.patch
  345. rename to tests/cthon04/0008-cthon-disabling-test8-from-the-basic-test.patch
  346. diff --git a/tests/0009-cthon-enabling-NATIVE64-for-special-tests.patch b/tests/cthon04/0009-cthon-enabling-NATIVE64-for-special-tests.patch
  347. similarity index 100%
  348. rename from tests/0009-cthon-enabling-NATIVE64-for-special-tests.patch
  349. rename to tests/cthon04/0009-cthon-enabling-NATIVE64-for-special-tests.patch
  350. diff --git a/tests/0010-cthon-fixes-for-64-bit-locking.patch b/tests/cthon04/0010-cthon-fixes-for-64-bit-locking.patch
  351. similarity index 100%
  352. rename from tests/0010-cthon-fixes-for-64-bit-locking.patch
  353. rename to tests/cthon04/0010-cthon-fixes-for-64-bit-locking.patch
  354. diff --git a/tests/0011-cthon-setting-maxeof-to-be-64bit.patch b/tests/cthon04/0011-cthon-setting-maxeof-to-be-64bit.patch
  355. similarity index 100%
  356. rename from tests/0011-cthon-setting-maxeof-to-be-64bit.patch
  357. rename to tests/cthon04/0011-cthon-setting-maxeof-to-be-64bit.patch
  358. diff --git a/tests/0012-removing-pmapbrb-pmaptst-tests-from-tools-dir.patch b/tests/cthon04/0012-removing-pmapbrb-pmaptst-tests-from-tools-dir.patch
  359. similarity index 100%
  360. rename from tests/0012-removing-pmapbrb-pmaptst-tests-from-tools-dir.patch
  361. rename to tests/cthon04/0012-removing-pmapbrb-pmaptst-tests-from-tools-dir.patch
  362. diff --git a/tests/0013-nroff-patch.patch b/tests/cthon04/0013-nroff-patch.patch
  363. similarity index 100%
  364. rename from tests/0013-nroff-patch.patch
  365. rename to tests/cthon04/0013-nroff-patch.patch
  366. diff --git a/tests/0014-commenting-out-symlink-test-in-special-tests.patch b/tests/cthon04/0014-commenting-out-symlink-test-in-special-tests.patch
  367. similarity index 100%
  368. rename from tests/0014-commenting-out-symlink-test-in-special-tests.patch
  369. rename to tests/cthon04/0014-commenting-out-symlink-test-in-special-tests.patch
  370. diff --git a/tests/0015-cthon-enabled-basic-test4a-5a-5b-and-7a.patch b/tests/cthon04/0015-cthon-enabled-basic-test4a-5a-5b-and-7a.patch
  371. similarity index 100%
  372. rename from tests/0015-cthon-enabled-basic-test4a-5a-5b-and-7a.patch
  373. rename to tests/cthon04/0015-cthon-enabled-basic-test4a-5a-5b-and-7a.patch
  374. diff --git a/tests/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch b/tests/cthon04/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch
  375. similarity index 100%
  376. rename from tests/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch
  377. rename to tests/cthon04/0016-cthon-Handle-error-messages-for-newer-Cygwin-nroff-v.patch
  378. --
  379. 2.42.1
  380.  
  381. From 57b5a1e2face35404ba3b59ba33a6ab03284e27d Mon Sep 17 00:00:00 2001
  382. From: Roland Mainz <roland.mainz@nrubsig.org>
  383. Date: Mon, 13 Nov 2023 18:46:19 +0100
  384. Subject: [PATCH 5/5] tests: Add draft how to test ms-nfs41-client manually
  385.  
  386. Add draft readme how to test ms-nfs41-client manually.
  387. This needs to be expanded and turned into automated tests
  388. if possible.
  389.  
  390. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  391. ---
  392. tests/manual_testing.txt | 70 ++++++++++++++++++++++++++++++++++++++++
  393.  1 file changed, 70 insertions(+)
  394.  create mode 100644 tests/manual_testing.txt
  395.  
  396. diff --git a/tests/manual_testing.txt b/tests/manual_testing.txt
  397. new file mode 100644
  398. index 0000000..07ffcf2
  399. --- /dev/null
  400. +++ b/tests/manual_testing.txt
  401. @@ -0,0 +1,70 @@
  402. +#
  403. +# ms-nfs41-client manual testing sequence, 2023-11-20
  404. +#
  405. +# Draft version, needs to be turned into automated tests
  406. +# if possible
  407. +#
  408. +
  409. +# start cygserver as admin before running tests
  410. +# so SysV shared memory works:
  411. +# cygserver-config
  412. +# net start cygserver
  413. +# sc query cygserver
  414. +
  415. +
  416. +#
  417. +# Compile each of the following package
  418. +# on a NFSv4.1 share, and run each build in parallel/sequence
  419. +# multiple times on one or multiple mounts
  420. +#
  421. +# ./nfs_mount -p -o sec=sys T derfwnb4966_ipv6:/net_tmpfs2
  422. +# ./nfs_mount -p -o sec=sys R derfwnb4966_ipv6:/net_tmpfs2/test2
  423. +#
  424. +
  425. +#
  426. +# ksh93 (ast-ksh)
  427. +#
  428. +git clone -b 'v1.0.7' https://github.com/ksh93/ksh.git
  429. +cd ksh
  430. +git config --global --add safe.directory "$PWD"
  431. +sed -i -r 's/mkfifo.+?(-m [[:digit:]]+)/mkfifo /g' ./src/cmd/INIT/package.sh ./bin/package
  432. +# repeat:
  433. +rm -Rf arch
  434. +time ksh93 -c 'export SHELL=/bin/bash HOSTTYPE="cygwin.i386-64"; /bin/bash ./bin/package make CC="/usr/bin/cc -std=gnu11" CCFLAGS="-Os -g" SHELL="$SHELL" HOSTTYPE="$HOSTTYPE"' 2>&1 | tee buildlog.log
  435. +
  436. +
  437. +#
  438. +# bash
  439. +#
  440. +git clone https://git.savannah.gnu.org/git/bash.git
  441. +cd bash/
  442. +./configure --with-curses
  443. +# repeat:
  444. +make clean && make -j4 all
  445. +
  446. +
  447. +#
  448. +# ms-nfs41-client
  449. +#
  450. +git clone https://github.com/kofemann/ms-nfs41-client.git
  451. +cd ms-nfs41-client
  452. +export PATH+=":/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/"
  453. +# repeat:
  454. +# clean
  455. +rm -vRf $(find . -name Debug -o -name Release)
  456. +# build
  457. +MSBuild.exe build.vc19/nfs41-client.sln -t:Build  -p:Configuration=Debug -p:Platform=x64
  458. +MSBuild.exe build.vc19/nfs41-client.sln -t:Build  -p:Configuration=Release -p:Platform=x64
  459. +
  460. +
  461. +#
  462. +# gcc
  463. +#
  464. +git clone -b 'releases/gcc-13.2.0' git://gcc.gnu.org/git/gcc.git
  465. +cd gcc/
  466. +./configure
  467. +# repeat:
  468. +make -j4 clean
  469. +(yes | make -j32 all)
  470. +
  471. +# EOF.
  472. --
  473. 2.42.1

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at