2023-10-04 22:01:09 +03:00
|
|
|
|
package Common;
|
2023-10-03 15:07:17 +03:00
|
|
|
|
import GlobalData.Machine.Machine;
|
|
|
|
|
|
import GlobalData.Machine.MachineType;
|
|
|
|
|
|
import GlobalData.User.User;
|
2023-10-17 17:33:34 +03:00
|
|
|
|
import Visual_DVM_2021.Passes.PassCode_2021;
|
2023-10-03 15:07:17 +03:00
|
|
|
|
|
2023-09-29 21:46:08 +03:00
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
public class Constants {
|
2023-10-03 15:07:17 +03:00
|
|
|
|
public static final int Nan = -1;
|
|
|
|
|
|
//SVN
|
|
|
|
|
|
public static final String REPOSITORY_AUTHENTICATION = "--username dvmhuser --password dvmh2013 --non-interactive";
|
|
|
|
|
|
public static final String DVM_REPOSITORY = "http://svn.dvm-system.org/svn/dvmhrepo/dvm";
|
|
|
|
|
|
public static final String SAPFOR_REPOSITORY = "http://svn.dvm-system.org/svn/dvmhrepo/sapfor";
|
|
|
|
|
|
//--
|
2023-10-06 22:51:09 +03:00
|
|
|
|
//-файлы-признаки
|
2023-10-15 21:58:23 +03:00
|
|
|
|
public static final String LOADED = "LOADED";
|
|
|
|
|
|
public static final String STARTED = "STARTED";
|
2023-10-04 22:01:09 +03:00
|
|
|
|
public static final String ABORTED = "ABORTED";
|
|
|
|
|
|
public static final String INTERRUPT = "INTERRUPT"; //файл признак прерывания.
|
|
|
|
|
|
public final static String DONE = "DONE";
|
|
|
|
|
|
public final static String TIMEOUT = "TIMEOUT";
|
2023-10-06 22:51:09 +03:00
|
|
|
|
//-вывод задач
|
2023-10-07 00:45:09 +03:00
|
|
|
|
public final static String parse_out_file = "parse_out.txt";
|
|
|
|
|
|
public final static String parse_err_file = "parse_err.txt";
|
2023-10-04 22:01:09 +03:00
|
|
|
|
public final static String out_file = "out.txt";
|
|
|
|
|
|
public final static String err_file = "err.txt";
|
2023-11-13 23:16:36 +03:00
|
|
|
|
public final static String script = "script.sh";
|
2023-10-04 22:01:09 +03:00
|
|
|
|
public final static String time_file = "total_time";
|
2023-10-06 22:51:09 +03:00
|
|
|
|
//-служебные разделы проекта.
|
|
|
|
|
|
public static final String data = "visualiser_data";
|
2023-10-14 00:43:39 +03:00
|
|
|
|
public static final String MailAddress = "sapfor.tracker@internet.ru";
|
|
|
|
|
|
// public static final String MailPassword = "3s4w9e5fs3c1a89AA"; основной пароль.
|
|
|
|
|
|
public static final String MailPassword = "knKn2PpfrC348ZxHtMnT"; //пароль для сапфора как внешнего приложения.
|
2023-10-17 17:33:34 +03:00
|
|
|
|
//--
|
2023-10-18 14:05:51 +03:00
|
|
|
|
public static final String package_json = "package_json";
|
|
|
|
|
|
public static final String results_json = "results_json";
|
|
|
|
|
|
//--
|
2023-10-17 17:33:34 +03:00
|
|
|
|
public static final PassCode_2021[] terminalSapforTestingCodes = new PassCode_2021[]{
|
|
|
|
|
|
PassCode_2021.CreateParallelVariants,
|
|
|
|
|
|
PassCode_2021.SPF_SharedMemoryParallelization,
|
|
|
|
|
|
PassCode_2021.SPF_InsertDvmhRegions
|
|
|
|
|
|
};
|
2023-10-17 19:16:59 +03:00
|
|
|
|
public static final int parser_group = -1;
|
|
|
|
|
|
public static final int compiler_group = -2;
|
2023-10-31 01:02:11 +03:00
|
|
|
|
// DBProjectFile
|
|
|
|
|
|
public static final String no_data = "Нет данных";
|
|
|
|
|
|
public static final String dep = ".dep";
|
|
|
|
|
|
public static final String out = ".out";
|
|
|
|
|
|
public static final String err = ".err";
|
|
|
|
|
|
public static final String makefile = "Makefile";
|
|
|
|
|
|
//db_project_info
|
|
|
|
|
|
public static final String launch_script_name = "run";
|
|
|
|
|
|
public static final String default_binary_name = "0";
|
|
|
|
|
|
public static final String spf = "spf.proj";
|
|
|
|
|
|
public static final String options = "options";
|
|
|
|
|
|
public static final String gcov = "gcov";
|
|
|
|
|
|
public static final String attachments = "attachments";
|
|
|
|
|
|
public static final String statistic = "statistic";
|
|
|
|
|
|
public static final String unknown_metric = " — ";
|
|
|
|
|
|
|
2023-10-03 15:07:17 +03:00
|
|
|
|
//--
|
2023-09-29 21:46:08 +03:00
|
|
|
|
//https://losst.ru/komandy-terminala-linux
|
|
|
|
|
|
public static String[] linux_system_commands = new String[]{
|
|
|
|
|
|
//<editor-fold desc="все линуксовые команды. их МНОГО">
|
|
|
|
|
|
"a2p",
|
|
|
|
|
|
"ac",
|
|
|
|
|
|
"addgroup",
|
|
|
|
|
|
"adduser",
|
|
|
|
|
|
"agrep",
|
|
|
|
|
|
"alias",
|
|
|
|
|
|
"apropos",
|
|
|
|
|
|
"apt",
|
|
|
|
|
|
"aptitude",
|
|
|
|
|
|
"ar",
|
|
|
|
|
|
"arch",
|
|
|
|
|
|
"arp",
|
|
|
|
|
|
"as",
|
|
|
|
|
|
"aspell",
|
|
|
|
|
|
"at",
|
|
|
|
|
|
"awk",
|
|
|
|
|
|
"basename",
|
|
|
|
|
|
"bash",
|
|
|
|
|
|
"bс",
|
|
|
|
|
|
"bdiff",
|
|
|
|
|
|
"bfs",
|
|
|
|
|
|
"bg",
|
|
|
|
|
|
"biff",
|
|
|
|
|
|
"break",
|
|
|
|
|
|
"bs",
|
|
|
|
|
|
"bye",
|
|
|
|
|
|
"cal",
|
|
|
|
|
|
"calendar",
|
|
|
|
|
|
"cancel",
|
|
|
|
|
|
"cat",
|
|
|
|
|
|
"cc",
|
|
|
|
|
|
"cd",
|
|
|
|
|
|
"cfdisk",
|
|
|
|
|
|
"chdir",
|
|
|
|
|
|
"checkeq",
|
|
|
|
|
|
"checknr",
|
|
|
|
|
|
"chfn",
|
|
|
|
|
|
"chgrp",
|
|
|
|
|
|
"chmod",
|
|
|
|
|
|
"chown",
|
|
|
|
|
|
"chroot",
|
|
|
|
|
|
"chsh",
|
|
|
|
|
|
"cksum",
|
|
|
|
|
|
"clear",
|
|
|
|
|
|
"cmp",
|
|
|
|
|
|
"col",
|
|
|
|
|
|
"comm",
|
|
|
|
|
|
"compress",
|
|
|
|
|
|
"continue",
|
|
|
|
|
|
"cp",
|
|
|
|
|
|
"cpio",
|
|
|
|
|
|
"crontab",
|
|
|
|
|
|
"csh",
|
|
|
|
|
|
"csplit",
|
|
|
|
|
|
"ctags",
|
|
|
|
|
|
"cu",
|
|
|
|
|
|
"curl",
|
|
|
|
|
|
"cut",
|
|
|
|
|
|
"date",
|
|
|
|
|
|
"dc",
|
|
|
|
|
|
"dd",
|
|
|
|
|
|
"delgroup",
|
|
|
|
|
|
"deluser",
|
|
|
|
|
|
"depmod",
|
|
|
|
|
|
"deroff",
|
|
|
|
|
|
"df",
|
|
|
|
|
|
"dhclient",
|
|
|
|
|
|
"dig",
|
|
|
|
|
|
"dircmp",
|
|
|
|
|
|
"dirname",
|
|
|
|
|
|
"dmesg",
|
|
|
|
|
|
"dos2unix",
|
|
|
|
|
|
"dpkg",
|
|
|
|
|
|
"dpost",
|
|
|
|
|
|
"du",
|
|
|
|
|
|
"echo",
|
|
|
|
|
|
"ed",
|
|
|
|
|
|
"edit",
|
|
|
|
|
|
"egrep",
|
|
|
|
|
|
"eject",
|
|
|
|
|
|
"elm",
|
|
|
|
|
|
"emacs",
|
|
|
|
|
|
"emerge",
|
|
|
|
|
|
"enable",
|
|
|
|
|
|
"env",
|
|
|
|
|
|
"eqn",
|
|
|
|
|
|
"ex",
|
|
|
|
|
|
"exit",
|
|
|
|
|
|
"expand",
|
|
|
|
|
|
"expr",
|
|
|
|
|
|
"fc",
|
|
|
|
|
|
"fdisk",
|
|
|
|
|
|
"fg",
|
|
|
|
|
|
"fgrep",
|
|
|
|
|
|
"file",
|
|
|
|
|
|
"find",
|
|
|
|
|
|
"findsmb",
|
|
|
|
|
|
"finger",
|
|
|
|
|
|
"fmt",
|
|
|
|
|
|
"fold",
|
|
|
|
|
|
"for",
|
|
|
|
|
|
"foreach",
|
|
|
|
|
|
"free",
|
|
|
|
|
|
"fsck",
|
|
|
|
|
|
"ftp",
|
|
|
|
|
|
"fuser",
|
|
|
|
|
|
"gawk",
|
|
|
|
|
|
"getfacl",
|
|
|
|
|
|
"gpasswd",
|
|
|
|
|
|
"gprof",
|
|
|
|
|
|
"grep",
|
|
|
|
|
|
"groupadd",
|
|
|
|
|
|
"groupdel",
|
|
|
|
|
|
"groupmod",
|
|
|
|
|
|
"gnuzip",
|
|
|
|
|
|
"gview",
|
|
|
|
|
|
"gvim",
|
|
|
|
|
|
"gzip",
|
|
|
|
|
|
"halt",
|
|
|
|
|
|
"head",
|
|
|
|
|
|
"help",
|
|
|
|
|
|
"history",
|
|
|
|
|
|
"host",
|
|
|
|
|
|
"hostid",
|
|
|
|
|
|
"hostname",
|
|
|
|
|
|
"htop",
|
|
|
|
|
|
"id",
|
|
|
|
|
|
"ifconfig",
|
|
|
|
|
|
"ifdown",
|
|
|
|
|
|
"ifquery",
|
|
|
|
|
|
"ifup",
|
|
|
|
|
|
"info",
|
|
|
|
|
|
"insmod",
|
|
|
|
|
|
"iostat",
|
|
|
|
|
|
"ip",
|
|
|
|
|
|
"iwconfig",
|
|
|
|
|
|
"jobs",
|
|
|
|
|
|
"join",
|
|
|
|
|
|
"kill",
|
|
|
|
|
|
"killall",
|
|
|
|
|
|
"ksh",
|
|
|
|
|
|
"last",
|
|
|
|
|
|
"ld",
|
|
|
|
|
|
"ldd",
|
|
|
|
|
|
"less",
|
|
|
|
|
|
"link",
|
|
|
|
|
|
"ln",
|
|
|
|
|
|
"lo",
|
|
|
|
|
|
"locate",
|
|
|
|
|
|
"login",
|
|
|
|
|
|
"logname",
|
|
|
|
|
|
"logout",
|
|
|
|
|
|
"losetup",
|
|
|
|
|
|
"ls",
|
|
|
|
|
|
"lsmod",
|
|
|
|
|
|
"lsof",
|
|
|
|
|
|
"lzcat",
|
|
|
|
|
|
"lzma",
|
|
|
|
|
|
"mach",
|
|
|
|
|
|
"mailx",
|
|
|
|
|
|
"make",
|
|
|
|
|
|
"man",
|
|
|
|
|
|
"merge",
|
|
|
|
|
|
"mesg",
|
|
|
|
|
|
"mkdir",
|
|
|
|
|
|
"mkfs",
|
|
|
|
|
|
"mkswap",
|
|
|
|
|
|
"modinfo",
|
|
|
|
|
|
"modprobe",
|
|
|
|
|
|
"more",
|
|
|
|
|
|
"mount",
|
|
|
|
|
|
"mt",
|
|
|
|
|
|
"mv",
|
|
|
|
|
|
"mysql",
|
|
|
|
|
|
"mysqldump",
|
|
|
|
|
|
"nc",
|
|
|
|
|
|
"netstat",
|
|
|
|
|
|
"newgrp",
|
|
|
|
|
|
"nice",
|
|
|
|
|
|
"niscat",
|
|
|
|
|
|
"nischmod",
|
|
|
|
|
|
"nischown",
|
|
|
|
|
|
"nischttl",
|
|
|
|
|
|
"nisdefaults",
|
|
|
|
|
|
"nistbladm",
|
|
|
|
|
|
"nl",
|
|
|
|
|
|
"nmap",
|
|
|
|
|
|
"nohup",
|
|
|
|
|
|
"nroff",
|
|
|
|
|
|
"nslookup",
|
|
|
|
|
|
"od",
|
|
|
|
|
|
"on",
|
|
|
|
|
|
"onintr",
|
|
|
|
|
|
"pack",
|
|
|
|
|
|
"pacman",
|
|
|
|
|
|
"pagesize",
|
|
|
|
|
|
"parted",
|
|
|
|
|
|
"partprobe",
|
|
|
|
|
|
"passwd",
|
|
|
|
|
|
"paste",
|
|
|
|
|
|
"pax",
|
|
|
|
|
|
"pact",
|
|
|
|
|
|
"perl",
|
|
|
|
|
|
"pg",
|
|
|
|
|
|
"pico",
|
|
|
|
|
|
"pine",
|
|
|
|
|
|
"pkill",
|
|
|
|
|
|
"poweroff",
|
|
|
|
|
|
"pr",
|
|
|
|
|
|
"printenv",
|
|
|
|
|
|
"printf",
|
|
|
|
|
|
"ps",
|
|
|
|
|
|
"pstree",
|
|
|
|
|
|
"pvs",
|
|
|
|
|
|
"pwd",
|
|
|
|
|
|
"quit",
|
|
|
|
|
|
"rcp",
|
|
|
|
|
|
"readlink",
|
|
|
|
|
|
"reboot",
|
|
|
|
|
|
"red",
|
|
|
|
|
|
"rename",
|
|
|
|
|
|
"repeat",
|
|
|
|
|
|
"replace",
|
|
|
|
|
|
"rlogin",
|
|
|
|
|
|
"rm",
|
|
|
|
|
|
"rmdir",
|
|
|
|
|
|
"rmmod",
|
|
|
|
|
|
"route",
|
|
|
|
|
|
"rpcinfo",
|
|
|
|
|
|
"rsh",
|
|
|
|
|
|
"rsync",
|
|
|
|
|
|
"s2p",
|
|
|
|
|
|
"scp",
|
|
|
|
|
|
"screen",
|
|
|
|
|
|
"script",
|
|
|
|
|
|
"sdiff",
|
|
|
|
|
|
"sed",
|
|
|
|
|
|
"sendmail",
|
|
|
|
|
|
"service",
|
|
|
|
|
|
"set",
|
|
|
|
|
|
"setfacl",
|
|
|
|
|
|
"sfdisk",
|
|
|
|
|
|
"sftp",
|
|
|
|
|
|
"sh",
|
|
|
|
|
|
"shred",
|
|
|
|
|
|
"shutdown",
|
|
|
|
|
|
"sleep",
|
|
|
|
|
|
"slogin",
|
|
|
|
|
|
"smbclient",
|
|
|
|
|
|
"sort",
|
|
|
|
|
|
"spell",
|
|
|
|
|
|
"split",
|
|
|
|
|
|
"startx",
|
|
|
|
|
|
"ss",
|
|
|
|
|
|
"ssh",
|
|
|
|
|
|
"stat",
|
|
|
|
|
|
"stop",
|
|
|
|
|
|
"strftime",
|
|
|
|
|
|
"strip",
|
|
|
|
|
|
"stty",
|
|
|
|
|
|
"su",
|
|
|
|
|
|
"sudo",
|
|
|
|
|
|
"swapoff",
|
|
|
|
|
|
"swapon",
|
|
|
|
|
|
"systemctl",
|
|
|
|
|
|
"tabs",
|
|
|
|
|
|
"tac",
|
|
|
|
|
|
"tail",
|
|
|
|
|
|
"talk",
|
|
|
|
|
|
"tar",
|
|
|
|
|
|
"tcopy",
|
|
|
|
|
|
"tcpdump",
|
|
|
|
|
|
"tcsh",
|
|
|
|
|
|
"tee",
|
|
|
|
|
|
"telnet",
|
|
|
|
|
|
"test",
|
|
|
|
|
|
"time",
|
|
|
|
|
|
"timex",
|
|
|
|
|
|
"todos",
|
|
|
|
|
|
"top",
|
|
|
|
|
|
"touch",
|
|
|
|
|
|
"traceroute",
|
|
|
|
|
|
"tree",
|
|
|
|
|
|
"tty",
|
|
|
|
|
|
"umask",
|
|
|
|
|
|
"umount",
|
|
|
|
|
|
"unalias",
|
|
|
|
|
|
"uname",
|
|
|
|
|
|
"uncompress",
|
|
|
|
|
|
"uniq",
|
|
|
|
|
|
"unlink",
|
|
|
|
|
|
"unlzma",
|
|
|
|
|
|
"unpack",
|
|
|
|
|
|
"until",
|
|
|
|
|
|
"unxz",
|
|
|
|
|
|
"unzip",
|
|
|
|
|
|
"uptime",
|
|
|
|
|
|
"useradd",
|
|
|
|
|
|
"userdel",
|
|
|
|
|
|
"usermod",
|
|
|
|
|
|
"vacation",
|
|
|
|
|
|
"vi",
|
|
|
|
|
|
"vim",
|
|
|
|
|
|
"w",
|
|
|
|
|
|
"wait",
|
|
|
|
|
|
"wall",
|
|
|
|
|
|
"wc",
|
|
|
|
|
|
"wget",
|
|
|
|
|
|
"whereis",
|
|
|
|
|
|
"which",
|
|
|
|
|
|
"while",
|
|
|
|
|
|
"who",
|
|
|
|
|
|
"whoami",
|
|
|
|
|
|
"whois",
|
|
|
|
|
|
"Xorg",
|
|
|
|
|
|
"xargs",
|
|
|
|
|
|
"xfd",
|
|
|
|
|
|
"xhost",
|
|
|
|
|
|
"xlsfonts",
|
|
|
|
|
|
"xrdb",
|
|
|
|
|
|
"xset",
|
|
|
|
|
|
"xz",
|
|
|
|
|
|
"xzcat",
|
|
|
|
|
|
"yacc",
|
|
|
|
|
|
"yes",
|
|
|
|
|
|
"yppasswd",
|
|
|
|
|
|
"yum",
|
|
|
|
|
|
"zcat",
|
|
|
|
|
|
"zipcloack",
|
|
|
|
|
|
"zipinfo",
|
|
|
|
|
|
"zipnote",
|
|
|
|
|
|
"zipsplit",
|
|
|
|
|
|
"zypper"
|
|
|
|
|
|
//</editor-fold>
|
|
|
|
|
|
};
|
2023-09-30 18:19:31 +03:00
|
|
|
|
public static char toStrike = (char) 822;
|
2023-10-03 15:07:17 +03:00
|
|
|
|
public static char boop = (char) 7;
|
2023-09-30 18:19:31 +03:00
|
|
|
|
public static final Pattern VALID_EMAIL_ADDRESS_REGEX =
|
|
|
|
|
|
Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE);
|
|
|
|
|
|
public static char[] forbidden_file_name_characters = new char[]{
|
|
|
|
|
|
'#', '%', '&', '{', '}',
|
|
|
|
|
|
'<', '>', '*', '?', '!',
|
|
|
|
|
|
'$', '\'', '\"', '@', '+',
|
|
|
|
|
|
'`', '|', '=', '#', ':', '/', '\\',
|
|
|
|
|
|
'~', '^'
|
|
|
|
|
|
};
|
|
|
|
|
|
public static char[] regular_metasymbols = new char[]{
|
|
|
|
|
|
'<', '>', '(', ')', '[', ']', '{', '}', '^', '-', '=', '$', '!', '|', '?', '*', '+', '.'
|
|
|
|
|
|
};
|
|
|
|
|
|
//все запретные символы через пробел.
|
|
|
|
|
|
public static String all_forbidden_characters_string = "";
|
2023-10-03 15:07:17 +03:00
|
|
|
|
public static final Machine repository_machine = new Machine("Ubuntu", "alex-freenas.ddns.net", 23, MachineType.Server);
|
|
|
|
|
|
public static final User repository_user = new User("testuser", "mprit_2011", "");
|
2023-09-29 21:46:08 +03:00
|
|
|
|
}
|