File: examples-libpmem

package info (click to toggle)
pmdk 1.13.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,944 kB
  • sloc: ansic: 126,815; sh: 21,543; cpp: 9,413; python: 5,893; makefile: 3,119; perl: 2,294; pascal: 1,442
file content (15 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

cd src/examples/libpmem
for prog in manpage simple_copy full_copy
  do
    gcc -Wall -o "$AUTOPKGTEST_TMP"/$prog $prog.c -lpmem -pthread
  done

cd "$AUTOPKGTEST_TMP"
dd if=/dev/zero bs=4096 count=16 of=input status=none
rm -f output
./simple_copy input output
rm -f output
./full_copy input output