File: prepare_input.sh

package info (click to toggle)
libpmemobj-cpp 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,388 kB
  • sloc: cpp: 136,076; sh: 1,022; perl: 381; ansic: 163; makefile: 13
file content (13 lines) | stat: -rwxr-xr-x 336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2021, Intel Corporation
#
set -e

# prepares input for ex-pman test
# usage: ./prepare_input.sh input_file

dd if=/dev/zero bs=64 count=1 2>>/dev/null >> ${1}
echo -n slkiiijjbjjii >> ${1}
dd if=/dev/zero bs=128 count=1 2>>/dev/null >> ${1}
echo -n q >> ${1}